<%@page import="java.util.List"%>
<%@page import="ship.entity.shipinformation"%>
<%@ page language="java" contentType="text/html; charset=utf-8"
    pageEncoding="utf-8"%>
<!DOCTYPE html>
<html>
<head>
<meta charset="utf-8">
<title>船舶管理系统</title>
<link rel="stylesheet" href="css/index.css" type="text/css">
</head>
<body>
<!-- 头部导航栏headnavigation -->
<div id="headnavigation" class="layer clearfix">
     <ul class="twolnoe fl clearfix">
     <li><a href="index.jsp">首页网址</a></li>
     <li><span></span></li>
     <li><a href="#">联系我们</a></li>
     <li><a href="#">我要留言</a></li>
</ul>
     <ul class="tworone fr clearfix">
     <li>欢迎您：<%
           String name = (String)session.getAttribute("sname") ;
           if(name!=null){
        	   out.print(name);
     %>
           <a href="loginbyuser.jsp">注销</a>
     <% 
           }else{
        	   response.sendRedirect("../loginbyuser.jsp");
           }
     %></li>
     <li><span></span></li>
     <li><a href="loginbystaff.jsp">我是管理员！</a></li>
     <li><span></span></li>
     <li><a href="index2/index2_1_5.jsp">我要购买</a></li>
     <li><span></span></li>
     <li><a href="queryshipinformationbyuser">船只造价</a></li>
     <li><span></span></li>
     <li><a href="queryshipinformationbyuser">船只信息</a></li>
</ul>
</div>
<!-- 头部jpg导航headjpg -->
<div id="headjpg" class="layer clearfix">
<div class="headone">
<img src="img/1.png">
</div>
<div class="headtwo">
<img src="img/2.png">
</div>
</div>
<!-- 内容导航栏contentnavigationbar -->
<div id="contentnavigationbar" class="layer clearfix">
<h2 class="fl">
<a href="#">目录</a>
</h2>
<ul class="fr">
<li><a href="#">首页</a></li>
<li><a href="#">分类</a></li>
<li><a href="#">特色百科</a></li>
<li><a href="#">权威合作</a></li>
<li><a href="#">个人中心</a></li>
</ul>
</div>
<!-- 主要内容maincontent -->
<div id="maincontent" class="layer clearfix">
<div class="fourlone fl clearfix">
<h4 class="fl mt">我的信息中心</h4><br>
<ul class="clearfix">
<li><a href="querymyuserServlet">查看我的所有信息</a></li>
</ul>
<h4 class="fl mt">我的订单中心</h4><br>
<ul class="clearfix">
<li><a href="querymyorderifm">查看我的订单信息</a></li>
</ul>
<h4 class="fl mt">商品船只服务中心</h4><br>
<ul class="clearfix">
<li style="background-color:#ffbbbb;"><a href="queryshipinformationbyuser">船只列表</a></li>
<li><a href="index2/index2_1_5.jsp">我要购买</a></li>
</ul>
</div>
<div class="fourrone fr clearfix">
<div class="fourronecenter clearfix">
<table style="width:800px;float:left;margin-top:20px;margin-left:50px;text-align:center;" class="tableone"> 
            <tr>
            <th width="8%">船码</th>
            <th width="12%">舰名</th>
            <th width="18%">船型</th>
            <th>造价</th>
            <th>吨位</th>
            <th>造址</th>
            <th>本系统评价</th>
            <th>购买建议!</th>
            <th>商品状态</th>
           </tr>
           <% 
               //获取request域中的数据	
               List<shipinformation> informations = (List<shipinformation> )request.getAttribute("informations");
               for(shipinformation information:informations){
            %>   
                <tr>
                   <td><%=information.getSn()%></td>
                   <td><%=information.getSshipname()%></td>
                   <td><%=information.getSshipform()%></td>
                   <td><%=information.getSprice() %></td>
                   <td><%=information.getStonnage() %></td>
                   <td><%=information.getSsource() %></td>
                   <td><%=information.getSevaluate() %></td>
                   <td><%=information.getSadvise() %></td>
                   <td><%=information.getSstate() %></td>
                </tr>
            <%
               }
            %>
       </table>
</div>
</div>
</div>
<!-- 展示链接displaylinks -->
<div id="displaylinks" class="layer clearfix">
<div class="fivel fl">
<a href="#"><img src="img/Liaoning.jpg" style="width:390px;height:180px;"></a>
</div>
<div class="fiver fr">
<a href="#"><img src="img/HMSQueenElizabeth.jpg" style="width:390px;height:180px;"></a>
</div>
<div class="fivecenter fl">
<a href="#"><img src="img/TheodoreRoosevelt.jpg" style="width:390px;height:180px;"></a>
</div>
</div>
<!-- 底部信息与联系栏 bottompage -->
<div id="bottompage" class="layer">
<table>
<tr>
<td>
<p>&nbsp;</p>
<p style="font-size:21px;">17软件3班毕业设计1组</p><br>
<p>刘伟:201702050340</p>
<p>毛杰:201702050323</p>
<p>曾俊峰:201702040102</p>
<p>联系我们！：QQ2591654285 and 18120372720。</p>
</td>
</tr>
</table>
</div>
</body>
</html>